package com.mystudy.concurrent.designModel.observerModel;

/**
 * TODO: 子订阅者
 *
 * @author acy
 * @since 2019/05/27 20:52
 */
public class BinaryObserver extends Observer{
	public BinaryObserver(Subject subject) {
		super(subject);
	}

	@Override
	void doUpdate() {
		System.out.println("Binary String:"+Integer.toBinaryString(subject.getState()));
	}
}
